import Vue from 'vue'
import App from './App.vue'

import router from './router/routers'
import './router/index' // permission control
import Vant from 'vant';
import store from './store'
import 'vant/lib/index.css';
// import "@/assets/iconfont/iconfont.css";

import VxeUITable from 'vxe-table'
import VConsole from 'vconsole';



import 'vxe-table/lib/style.css'
// ...

Vue.use(VxeUITable)

Vue.use(Vant);

Vue.config.productionTip = false
Vue.config.devtools = process.env.ENABLE_VUE_DEVTOOLS === 'true';
// 开发环境启用vConsole
if (process.env.NODE_ENV === 'development') {
  new VConsole();
}
const meta = document.createElement('meta');
meta.name = 'viewport';
meta.content = 'width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no';
document.getElementsByTagName('head')[0].appendChild(meta);
new Vue({
  store,
  router,
  render: h => h(App),
}).$mount('#app')
